{if $user_profile->banned == 1}
    <span id="profile">

            <div id="content_left" style="width:100%;">


                <div class="post">
                    <div class="post_header">
                        <h3>Utente bannato</h3>
                    </div>

                    
                </div>

            </div>
    </span>
        {else}
            <span id="profile">
        {if !isset($action) || $action eq "summary"}
            <div id="content_left">
        {else}
            <div id="content_left" style="width:100%;">
        {/if}


            <div class="post">
                <div class="post_header">
                    <h3>Profilo di {$user_profile->getUsername()}</h3>
                </div>
                <div class="post_content">

                    {if isset($action)}
                        {if $action eq "summary"}
                            {include file="{$TEMPLATES_URL}profile_summary.tpl"}
                        {elseif $action eq "edit"}
                            {include file="{$TEMPLATES_URL}profile_edit.tpl"}
                        {elseif $action eq "mail"}
                            {include file="{$TEMPLATES_URL}profile_pm.tpl"}
                        {elseif $action eq "pm"}
                            {include file="{$TEMPLATES_URL}profile_pm_new.tpl"}
                        {elseif $action eq "thread"}
                            {include file="{$TEMPLATES_URL}profile_thread.tpl"}
                        {else}
                            {include file="{$TEMPLATES_URL}profile_summary.tpl"}
                        {/if}
                    {else}
                        {include file="{$TEMPLATES_URL}profile_summary.tpl"}
                    {/if}


                </div>	
            </div>

        </div>
    </span>
    {if !isset($action) || $action eq "summary"}
    <div id="content_right">

      <h3>Statistiche</h3>
        <div class="box_content">
            <ul id="profile_stats">
                <li>
                    <b>Ultimo accesso: </b> {Util::getDate($user_profile->last_login->getDateTime())} alle {Util::getTime($user_profile->last_login->getDateTime())} @ {$user_profile->last_login->ip_address}
                </li>
                <li>
                    <b>Iscritto il: </b> {Util::getDate($user_profile->registration_date)}
                </li>
                <li>
                    <b>Messaggi totali: </b> {$user_profile->getNrPosts()}
                </li>
                <li>
                    <b>Account: </b> {$user_profile->getUserType()}
                </li>
            </ul>
        </div>

    </div>
    {/if}
{/if}
